const product = {
  query: `GET /api/v1/biz/product`,
  queryList: `GET /api/v1/biz/product/list/all`,
  queryCurrent: `GET /api/v1/biz/product/{id}`,
  queryGroups: `GET /api/v1/biz/product/group`,
  remove: `DELETE /api/v1/biz/product`,
  create: `POST /api/v1/biz/product`,
  update: `PUT /api/v1/biz/product/{id}`,
  checkCode: `GET /api/v1/biz/product/code`,
  createRoute: `POST /api/v1/biz/product/serviceNode`,
  updateRoute: `PUT /api/v1/biz/product/serviceNode/{id}`,
  removeRoute: `DELETE /api/v1/biz/product/serviceNode/{id}`,
  createService: `POST /api/v1/biz/product/serviceNode/{nodeId}/services`,
  updateService: `PUT /api/v1/biz/product/serviceNode/{nodeId}/services/{serviceId}`,
  removeService: `DELETE /api/v1/biz/product/serviceNode/{nodeId}/services/{serviceId}`,
  queryServiceInfo: `GET /api/v1/biz/product/serviceNode/{nodeId}/services/{serviceId}/baseinfo`,
  queryOptionalServices: `GET /api/v1/biz/product/serviceNode/service/optional`,
  queryValueServices: `GET /api/v1/biz/product/serviceNode/value-added/list`,
  queryValueSelectedServices: `GET /api/v1/biz/product/serviceNode/value-added/services`,
  createValueServices: `POST /api/v1/biz/product/serviceNode/value-added/services`,
  submitAudit: `POST /api/v1/biz/product/submit`,
  audit: `POST /api/v1/biz/product/{id}/approve`,
  start: `POST /api/v1/biz/product/{id}/online`,
  stop: `POST /api/v1/biz/product/{id}/offline`,
  queryRuledProducts: `GET /api/v1/biz/product/listRuleProduct`,
  // 目前和queryGroup一样，未来看是否需要变成只返回有规则的产品组
  queryRuledGroups: `GET /api/v1/biz/product/group`,
  queryPreviousService: 'POST /api/v1/biz/product/servicePhase/{phaseId}/previousServices',
  // 产品范围
  range: {
    create: `POST /api/v1/biz/regions/addRelation/{startSchemaId}/{endSchemaId}`,
    query: `GET /api/v1/biz/regions/related/{startSchemaId}/{endSchemaId}`,
  },
  updateProductRegion: 'GET /api/v1/biz/products/region',
  queryProductUpdateTime: 'GET /api/v1/biz/products/region/lastTime',
  queryProductDefaultPic: 'GET /api/v1/base/common/product/brands',
  // 产品服务配置
  service: {
    queryRoutes: `GET /api/v1/biz/product/servicePhase`, // 根据产品id获取路由组及组内路由信息
    createRoutes: `POST /api/v1/biz/product/servicePhase`, // 添加产品服务环节
    updateRoutes: `PUT /api/v1/biz/product/servicePhase/{id}`, // 更新产品服务环节
    deleteRoutes: `DELETE /api/v1/biz/product/servicePhase/{id}`, // 删除产品服务环节
    queryCalcRuleList: 'GET /api/v1/biz/product/getCalcRuleList/{productId}', //根据产品id查询计费规则
    createCalcRule: `POST /api/v1/biz/product/calcRule`, //新建产品体积计费规则
    deleteCalcRule: `DELETE /api/v1/biz/product/calcRule/{id}`, //根据id删除体积计费规则
    validCalcRule: `POST /api/v1/biz/product/calcRule/valid`, //校验计费规则
  },
  operateLog: `GET /api/v1/biz/product/operateLog`,


  // 新
  queryServices: 'GET /api/v1/biz/service/new/list',
  queryServiceById: 'GET /api/v1/biz/service/new/{id}',
  newUpdateService: 'PUT /api/v1/biz/service/new/{id}',
  newCreateService: 'POST /api/v1/biz/service/new',
  createMainline: 'POST /api/v1/biz/service/new/createMainline',
  queryMainlines: 'GET /api/v1/biz/service/new/listMainline',
  queryFlight: 'GET /api/v1/newFlight/listByFlightDate',
  putFlight: 'PUT /api/v1/newFlight/updateInventory',
  importSale: 'POST /api/v1/newFlight/excelImportOnsale',
  importSelf: 'POST /api/v1/newFlight/excelImportSelf',
  saveImportExcel: 'POST /api/v1/newFlight/saveExcelData',
  queryFlightById: 'GET /api/v1/newFlight/{id}',
  putAirFlight: 'PUT /api/v1/newFlight/{id}',
  presell: {
    queryPresellDays: 'GET /api/v1/product/presale/days',
    putPresellDays: 'POST /api/v1/product/presale/days/{days}'
  }
};

export default product;
